<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($error_id = $route->getAdminId()){
	$db->sendQuery("delete from `errors` where `error_id` = '$error_id' limit 1");
}

goToPage("/admin/errors");
?>